package com.xdf.whiteaccount.service;
import com.xdf.whiteaccount.utils.Example;
import com.xdf.whiteaccount.entity.ScanList;
import java.util.List;
import java.util.Optional;

/**
 * @Description : 服务层接口，由代码生成器自动生成
 * @Author : chanchaw
 * @Date : 2023-12-7 8:13:58
 */
public interface ScanListService {
    ScanList insert(ScanList record);

    ScanList insertSelective(ScanList record);

    List<ScanList> multiInsert(List<ScanList> list);

    int updateByPrimaryKey(ScanList record);

    int updateByPrimaryKeySelective(ScanList record);

    // 根据主键删除
    int deleteByPrimaryKey(Integer id);
    // 根据主键查询
    ScanList selectByPrimaryKey(Integer id);
    // 根据主键作废
    int setVoid(Integer id);

    List<ScanList> selectAll();

    ScanList save(ScanList record);
    List<ScanList> multiSave(List<ScanList> list);

    //================= 下面是默认方法 ==================
    default void checkEntityNotNull(ScanList record){// 返回true表示合法，可继续
        if(record == null) throw new RuntimeException("无法保存空数据！");
    }

    default ScanList fullFill(ScanList record){
        return record;
    }

    default void doBeforeInsert(ScanList record){}
    default void doAfterInsert(ScanList record){}
    List<ScanList> selectByExample(Example<ScanList> example);
    ScanList moveBill(Integer id, String moveBillFlag);
    //=================以上是自动生成的代码，自定义代码请写在下面==================
    ScanList insertSelectiveOne(Integer jrkId,Integer deviceId);
    ScanList insertSelectiveShelves(String shelvesCode,Integer deviceId);
}